<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
	request.setAttribute("actionEntity","user");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="<%=basePath%>resource/theme/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=basePath%>resource/javascript/jquery.min.js"></script>
<script type="text/javascript" src="<%=basePath%>resource/javascript/jquery.validate.js"></script>
<script type="text/javascript" src="<%=basePath%>resource/javascript/messages_zh.js"></script>
<script type="text/javascript">
 $(document).ready(function(){
	 $("#saveUpdateForm").validate({debug:false});
});
</script>
</head>

<body>
	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="#">首页</a>	</li>
	<li><a href="#">系统管理</a></li>
    <li><a href="#">用户编辑</a></li>
    </ul>
    </div>
    <div class="formbody">
    <div class="formtitle"><span>用户信息</span></div>
    <form id="saveUpdateForm" action="<%=basePath%>${actionEntity}/saveUpdate.action" method="post">
    <input type="hidden" name="id" value="${entity.id}" />
    
        <ul class="forminfo">
<%--    	<li><label>beginRow</label><input id="entitybeginRow" class="dfinput" type="text" name="entity.beginRow"  value="${ entity.beginRow}" data-rule-required="true"/></li>--%>
<%--		<li><label>pageSize</label><input id="entitypageSize" class="dfinput" type="text" name="entity.pageSize"  value="${ entity.pageSize}" data-rule-required="true"/></li>--%>
<%--		<li><label>id</label><input id="entityid" class="dfinput" type="text" name="entity.id"  value="${ entity.id}" data-rule-required="true"/></li>--%>
		<li><label>用户名</label><input id="entityusername" class="dfinput" type="text" name="username"  value="${ entity.username}" data-rule-required="true"/></li>
		<li><label>密码</label><input id="entitypassword" class="dfinput" type="password" name="password"  value="${ entity.password}" data-rule-required="true"/></li>
		<li><label>性别</label>
		
		<cite>男：<input type="radio" name="sex" value="男" <c:if test="${entity.sex == '男' || empty entity.sex}">checked="checked"</c:if> />
    		     女：<input type="radio" name="sex" value="女" <c:if test="${entity.sex == '女'}">checked="checked"</c:if>/></cite>
		
<%--		<input id="entitysex" class="dfinput" type="text" name="sex"  value="${ entity.sex}" data-rule-required="true"/>--%>
		
		</li>
		<li><label>年龄</label><input id="entityage" class="dfinput" type="text" name="age"  value="${ entity.age}" data-rule-required="true"  data-rule-digits="true" data-rule-max="130" data-rule-min="18" data-msg-max="年龄必须在18岁到130岁之间!" data-msg-min="年龄必须在18岁到130岁之间!"/></li>
		<li><label>电子邮件</label><input id="entityemail" class="dfinput" type="text" name="email"  value="${ entity.email}" data-rule-required="true" data-rule-email="true"/></li>
		<li><label>是否启用</label>
			<cite>禁用：<input type="radio" name="isenable" value="禁用" <c:if test="${entity.isenable == '禁用' || empty entity.isenable}">checked="checked"</c:if> />
			                启用：<input type="radio" name="isenable" value="启用" <c:if test="${entity.isenable == '启用'}">checked="checked"</c:if>/></cite>
		
<%--		<input id="entityisenable" class="dfinput" type="text" name="isenable"  value="${ entity.isenable}" data-rule-required="true"/>--%>
		</li>

		<li><label>角色</label>
		<cite>管理员：<input type="radio" name="type" value="1" <c:if test="${entity.type == '1' || empty entity.type}">checked="checked"</c:if> />
			    派单员：<input type="radio" name="type" value="2" <c:if test="${entity.type == '2' }">checked="checked"</c:if> />
			     快递员：<input type="radio" name="type" value="3" <c:if test="${entity.type == '3' }">checked="checked"</c:if> />
			     客     户：<input type="radio" name="type" value="4" <c:if test="${entity.type == '4' }">checked="checked"</c:if> />
<%--		<input id="entitytype" class="dfinput" type="text" name="type"  value="${ entity.type}" data-rule-required="true"/>--%>
		</li>
<%--		<li><label>createtime</label><input id="entitycreatetime" class="dfinput" type="text" name="entity.createtime"  value="${ entity.createtime}" data-rule-required="true"/></li>--%>
	    
    
    <li><label>&nbsp;</label><input name="" type="submit" class="btn" value="确认保存"/></li>
    </ul>
    </form>
    </div>
</body>
</html>
